import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let advment = {
	path: '/advment',
	component: Layout,
	name: '广告管理',
	meta: {
		title: i18n.t('router.AdManage'),
		icon: 'dashboard',
		isPermiss:'/management/advertisement'
	},
	children: [
		{
			path: '/advment/info/index',
			component: () => import('@/views/advment/info/index.vue'),
			name: '广告投放',
			meta: { title: i18n.t('help.help.advertisement') },
			isPermiss:'/management/advertisement.advertisement_push/getGroupList'
		},
		{
			hidden: true,
			path: '/advment/info/add_info',
			component: () => import('@/views/advment/info/add_info/index.vue'),
			name: '广告推送',
			meta: { title: i18n.t('router.AdPush'),induce:'/advment/info/index' },
			isPermiss:'/management/advertisement.advertisement_push/add'
		},
		{
			hidden: true,
			path: '/advment/info/details_info',
			component: () => import('@/views/advment/info/details_info/index.vue'),
			name: '广告详情',
			meta: { title: i18n.t('router.AdDetails'),induce:'/advment/info/index' },
			isPermiss:'/management/advertisement.advertisement_push/update'
		},
		{
			hidden: true,
			path: '/advment/info/details_adv',
			component: () => import('@/views/advment/info/details_adv/index.vue'),
			name: '详情',
			meta: { title: i18n.t('public.details'),induce:'/advment/info/index' },
			isPermiss:'/management/advertisement.advertisement_push/getList'
		},
		{
			path: '/advment/record/index',
			component: () => import('@/views/advment/record/index.vue'),
			name: '播放记录',
			meta: { title: i18n.t('router.Playhistory') },
			isPermiss:'/management/advertisement.advertisementRecord/getList'
		},
	]
}

export default advment;